package com.luosan.portalservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.luosan.portalservice.pojo.SubCard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SubCardMapper extends BaseMapper<SubCard> {
    @Select("SELECT * FROM sub_card WHERE main_card_id = #{mainCardId} ORDER BY sort_order ASC")
    List<SubCard> selectByMainCardId(Integer mainCardId);
}
